<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');

/*
|--------------------------------------------------------------------------
| Custome
|--------------------------------------------------------------------------
|
| My constants
|
*/

define('BASE_URL', 'http://localhost/cambodia-rice/');

define('DATE_FORMAT', 'd-M-Y');
define('TITLE', 'Bright Rice & Food');

define('PAGE_HOME_ID', 1);
define('PAGE_EXPORT_ID', 2);
define('PAGE_CONTACT_ID', 3);
define('PAGE_LEGALITY_ID', 4);
define('PAGE_PHILOSOPHY_ID', 5);
define('PAGE_ASSOCIATION_ID', 6);
define('PAGE_MG_PROFILE_ID', 7);

define('LAYOUT_SITE_PATH', 'templates/site/');
define('LAYOUT_ADMIN_PATH', 'templates/admin/');
define('TEMPLATE_SITE_PATH', BASE_URL . 'templates/site/');
define('TEMPLATE_ADMIN_PATH', BASE_URL . 'templates/admin/');
define('IMAGE_PATH', BASE_URL . 'uploads/');
define('SLIDESHOW_PATH', BASE_URL . 'uploads/slideshow/');
define('SLIDESHOW_IMAGE_PATH', 'uploads/slideshow/');
define('MINI_SLIDESHOW_PATH', BASE_URL . 'uploads/minislideshow/');
define('MINI_SLIDESHOW_IMAGE_PATH', 'uploads/minislideshow/');
define('ACTIVITY_PATH', BASE_URL . 'uploads/activity/');
define('ACTIVITY_IMAGE_PATH', 'uploads/activity/');
define('PRODUCT_PATH', BASE_URL . 'uploads/products');
define('PRODUCT_IMAGE_PATH', 'uploads/products/');


define('CONTACT_SEND_TO_EMAIL', 'chundany@gmail.com');

/* End of file constants.php */
/* Location: ./application/config/constants.php */